package com.zgjkhis.modules.system.service.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zgjkhis.annotation.Query;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
* @date 2019-6-4 14:49:34
*/
@Data
@NoArgsConstructor
public class DrugDeliveryQueryCriteria {

    @Query
    @ApiModelProperty(value = "状态1：待审核，2已审核，3：已取消")
    private Integer status;

    @ApiModelProperty(value = "出库方式1：科室领用，2：报损，3员工取药，4：门店调拨，5盘点出库")
    private String deliveryType;

    @Query
    @ApiModelProperty(value = "订单号")
    private String deliveryNo;

    @Query
    @ApiModelProperty(value = "订单开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @Query
    @ApiModelProperty(value = "订单结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    @ApiModelProperty(value = "药房id")
    private String pharmacyId;


    @ApiModelProperty(value = "药品类型")
    private Integer drugType;
}
